//
//  questionCell.m
//  忘不了
//
//  Created by rimi on 16/7/19.
//  Copyright © 2016年 handuan. All rights reserved.
//

#import "questionCell.h"
#import "SDAutoLayout.h"

@implementation questionCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        [self loadUI];
    }
    return self;
}

- (void)loadUI {
    _questionLabel = [[UILabel alloc]init];
    _questionLabel.textColor = [UIColor blackColor];
    _questionLabel.textAlignment = NSTextAlignmentLeft;
    _questionLabel.font = [UIFont systemFontOfSize:18];
    [self.contentView addSubview:_questionLabel];
    _questionLabel.sd_layout
    .leftSpaceToView(self.contentView,0)
    .rightSpaceToView(self.contentView,0)
    .topSpaceToView(self.contentView,0)
    .heightIs(self.contentView.frame.size.height*0.3)
    .autoHeightRatio(0);
    
    _answerLabel = [[UILabel alloc]init];
    _answerLabel.textColor = [UIColor grayColor];
    _answerLabel.textAlignment = NSTextAlignmentLeft;
    _answerLabel.font = [UIFont systemFontOfSize:16];
    [self.contentView addSubview:_answerLabel];
    _answerLabel.sd_layout
    .leftSpaceToView(self.contentView,self.contentView.frame.size.width*0.1)
    .rightSpaceToView(self.contentView,self.contentView.frame.size.width*0.1)
    .topSpaceToView(_questionLabel,0)
    .heightIs(self.contentView.frame.size.height*0.7)
    .autoHeightRatio(0);
    
}


@end
